package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.User
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface UserMapper {

    fun getById(id: Long): User;

    fun insert(record: User);

    fun getByAccount(@Param("account") account: String?): User

    fun minusIntegral(@Param("id") id: Long)

    fun plusIntegral(@Param("id") id: Long?, @Param("integral") integral: Int, @Param("editor") editor: Long?)

    fun queryByIdList(@Param("idList") idList: List<Long>): List<User>

    fun updateStoreId(@Param("id")id: Long, @Param("storeId")storeId: Long)
}